<?php include('scripts.php'); ?>

<form action="/member/salesDetails" id="bonusForm" method="post">
<input type="hidden" id="filterAction" value="DSB">
<div style="padding: 10px; top: 30px; width: 98%">

<div class="portlet">
    <div class="portlet-header"><?php echo __('Total Sales Details') ?></div>
    <div class="portlet-content">

        <table class="display" id="datagrid" border="0" width="100%">
            <thead>
            <tr>
				<th style="text-align: center;"><?php echo __('Total Sales') ?></th>
                <th style="text-align: right;"><?php echo __('Left') ?></th>
                <th style="text-align: right;"><?php echo __('Right') ?></th>
			</tr>
            </thead>
            <tbody>
			<?php
                $month = array();
                $month["1"] = "January";
                $month["2"] = "February";
                $month["3"] = "March";
                $month["4"] = "April";
                $month["5"] = "May";
                $month["6"] = "June";
                $month["7"] = "July";
                $month["8"] = "August";
                $month["9"] = "September";
                $month["10"] = "October";
                $month["11"] = "November";
                $month["12"] = "December";
                foreach ($anode as $arr) {
                    echo "<tr class='odd'>
				        <td align='center'>".__($month[$arr["month"]])."</td>
				        <td align='right'>".number_format($arr["left_month_sales"], 0)."</td>
				        <td align='right'>".number_format($arr["right_month_sales"], 0)."</td>
				        </tr>";

                }
			?>
            </tbody>
        </table>
    </div>
</div>

</div>
</form>